home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 138 / 138.xpi / chrome / stumbleupon.jar / content / searchlinksDialog.xul < prev    next >
Extensible Markup Language  |  2009-05-22  |  2KB  |  71 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4.  
  5. <window id="stumble_searchlinks_dialog" title="StumbleUpon Search Reviews"
  6.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7.   onload="init();"
  8.     onunload="handle_window_unload();"
  9.     style="background-color:white;">
  10.  
  11. <script type="application/x-javascript">
  12. <![CDATA[
  13.  
  14. var detail;
  15.  
  16. function init()
  17. {
  18.     detail = window.arguments[0];
  19.     
  20.     detail.result = "cancel-error";
  21.  
  22.     var prompt = document.getElementById("prompt");
  23.  
  24.     prompt.setAttribute("src", detail.prompt_src);
  25.     
  26.     setTimeout(resize, 10);
  27. }
  28.  
  29. function resize()
  30. {
  31.     window.sizeToContent();
  32. }
  33.  
  34. function handle_button_click(value)
  35. {
  36.     detail.result = value;
  37.     setTimeout(close, 0);
  38. }
  39.  
  40. function handle_window_unload()
  41. {
  42.     opener.setTimeout(function (parent, detail) { parent.su_handle_searchlinks_dialog_close(detail); }, 0, opener, detail);
  43. }
  44.  
  45. ]]>
  46. </script>
  47. <spacer height="10px" style="background-color: white;"/>
  48. <image id="prompt"/>
  49. <spacer height="10px" style="background-color: white;"/>
  50. <hbox style="background-color: white;">
  51.     <spacer width="255px"/>
  52.     <image id="button-yes"
  53.         style="cursor:pointer;"
  54.         src="chrome://stumbleupon/content/skin/btn_turniton.gif"
  55.         onclick="handle_button_click('yes');"/>
  56.     <spacer flex="1"/>
  57.     <vbox>
  58.         <spacer flex="1"/>
  59.         <label id="button-no"
  60.             value="No thanks"
  61.             style="color:rgb(84,164,222);cursor:pointer;"
  62.             onclick="handle_button_click('no');"/>
  63.         <spacer flex="1"/>
  64.     </vbox>
  65.     <spacer width="15px"/>
  66. </hbox>
  67. <spacer 
  68.     style="background-color:white;"
  69.     height="20px"/>
  70. </window>
  71.